﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Electrical;
using Autodesk.Revit.DB.Mechanical;
using Autodesk.Revit.DB.Plumbing;
using Autodesk.Revit.UI.Selection;

namespace YArchitech.Revit
{
	public class DuctPipeCableTrayConduitFilter : ISelectionFilter
	{
		bool ISelectionFilter.AllowElement(Element elem)
		{
			return elem is Duct || elem is Pipe || elem is CableTray || elem is Conduit;
		}

		bool ISelectionFilter.AllowReference(Reference reference, XYZ position)
		{
			throw new NotImplementedException();
		}
	}
}
